package com.ght.order.service.impl;

import com.ght.common.datasource.annotation.Master;
import com.ght.common.datasource.annotation.Slave;
import com.ght.order.entry.OrderEntry;
import com.ght.order.mapper.OrderMapper;
import com.ght.order.service.IOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * TODO （请在这里添加该类的注释）
 *
 * @authoor wei.zhao
 * date 2024/11/25
 */
@Service
public class OrderServiceImpl implements IOrderService {

    @Autowired
    private OrderMapper orderMapper;

    @Slave
    public List<OrderEntry> findOrderList(){

        return orderMapper.findOrderList();
    }
}
